import request from '@/utils/http.js'

// 查询spu信息集合
export const getSpuInfoListApi = (params) => {
  return request({
    url: 'pms/backend/spuInfo/list',
    method: "GET",
    params: params,
  })
}

// 查询单个spu基本信息
export const getSpuInfoByIdApi = (spuId) => {
  return request({
    url: `pms/backend/spuInfo/info/${spuId}`,
    method: "GET",
  })
}

// 修改单个spu基本信息
export const updateSpuInfoApi = (data) => {
  return request({
    url: `pms/backend/spuInfo/info/${id}`,
    method: "PUT",
    data:JSON.stringify(data),
  })
}